package main 

import "fmt"

func main(){

	//1 声明变量类型
	var i int 
	fmt.Println("i=",i)

	//2 声明变量不带类型 编译器自行推导
	var j=10
	fmt.Println("j=",j)

	//3 声明变量省略var
	name:="i like money"
	fmt.Println("name=",name)

	var nm string ="lucy"
	fmt.Println("nm=",nm)
}